//
//  ZSButtonTag.h
//  Fangxiaov
//
//  Created by safiri on 2017/3/3.
//  Copyright © 2017年 com.f. All rights reserved.
//

#import <UIKit/UIKit.h>

@interface ZSButtonTag : NSObject

///setTitle
@property (nonatomic ,copy ,nullable) NSString *text;
///setAttributedTitle
@property (nonatomic ,copy ,nullable) NSAttributedString *attributedText;
///setTitleColor_Normal
@property (nonatomic ,strong ,nullable) UIColor *textColor;
///setTitleColor_Highlighted
@property (nonatomic ,strong ,nullable) UIColor *highlightedTextColor;
///setTitleColor_Selected
@property (nonatomic ,strong ,nullable) UIColor *slcTextColor;
///titleLabel.textAlignment
@property (nonatomic ,assign) NSTextAlignment textAlignment;
///setBackgroundColor
@property (nonatomic ,strong ,nullable) UIColor *bgColor;
///default YES condition:highlightedBgColor == nil
@property (nonatomic ,assign) BOOL autoDarkNrmBgColorForHighlighted;
///setBackgroundImage_Normal
@property (nonatomic ,strong ,nullable) UIImage *bgImage;
///setBackgroundImage_Normal
@property (nonatomic ,strong ,nullable) UIColor *nrmBgImageColor;
///setBackgroundImage_Selected
@property (nonatomic ,strong ,nullable) UIColor *slcBgImageColor;
///setBackgroundImage_Highlighted
@property (nonatomic ,strong ,nullable) UIColor *highlightedBgImageColor;
///边框圆角
@property (nonatomic ,assign) CGFloat borderCornerRadius;
///边框宽度
@property (nonatomic ,assign) CGFloat borderWidth;
///边框颜色
@property (nonatomic ,strong ,nullable) UIColor *borderColor;
///like padding in css
@property (nonatomic ,assign) UIEdgeInsets padding;
///字体
@property (nonatomic ,strong ,nullable) UIFont *font;
///默认字体大小，不设置font属性时使用
@property (nonatomic ,assign) CGFloat fontSize;
///能否被点击 默认为YES
@property (assign, nonatomic) BOOL enable;
///是否为固定大小,空为自动调整大小
@property (nonatomic ,assign) CGSize fixedSize;
///是否自动调整字体
@property (nonatomic ,assign) BOOL adjustsFont;

- (nonnull instancetype)initWithText:(nonnull NSString *)text;
+ (nonnull instancetype)tagWithText:(nonnull NSString *)text;
- (nonnull instancetype)initWithSameTag:(nonnull ZSButtonTag *)sameTag;
@end
